package com.sc.auction.pay.feign;

import com.sc.auction.common.pojo.User;
import com.sc.auction.common.util.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.*;

@Service
@FeignClient(value = "auction-user")
public interface UserFeignService {

    @GetMapping(value = "/user/user/getUserById" )
    public R getUserById(@RequestParam("id") Integer id);

    @PutMapping(value = "/user/user/update")
    public R update(@RequestBody User user);

}
